// 商店信息
module.exports = app => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;
  const ShopInfoSchema = new Schema({
    name: { type: String },
    //这是商店的头像
    shopPicture:  [
      {
        uid: { type: String },
        status: { type: String },
        url: { type: String }
      }
    ],
    businessTime: { type: String },
    longitude: { type: String },
    latitude: { type: String },
    address: { type: String },
    // 这个里面存放的是图片地址的字符串中间用,间隔
    //商店的实景图
    pictures: [
      {
        uid: { type: String },
        status: { type: String },
        url: { type: String }
      }
    ],
    contactPeople:{type:String},
    phone: { type: String },
    activities: [
      {
        description: { type: String },
        iconName: { type: String }
      }
    ],
    createTime: {
      type: Date,
      default: Date.now
    },
    updateTime: {
      type: Date,
      default: Date.now
    }
  });
  return mongoose.model("ShopInfo", ShopInfoSchema);
};
